<?php

class TipoEncaminhamentoController extends TMetroUI{
    
    public function __construct() {
        parent::__construct();
        $this->logic = new TipoEncaminhamentoLogic();
    }
    
    public function index() {
        $this->REDIRECT->goToAction('listar');
    }
    
    public function listar() {
        /* JS */
        $this->HTML->addJavaScript(PATH_TEMPLATE_JS_URL . "jquery/jquery.dataTables.js");
        $this->HTML->addJavaScript(PATH_JS_URL . $this->_controller . "/" . $this->_action . ".js");

        $this->addDados('isListTipoEncaminhamento', ($this->logic->totalRegistro() > 0) ? true : false);

        $this->TPageSecondary('lista');
    }
    
}

?>
